package com.example.myapplication.adapter

import com.bumptech.glide.Glide
import com.chad.library.adapter.base.BaseQuickAdapter
import com.chad.library.adapter.base.BaseViewHolder
import com.example.myapplication.R
import com.example.myapplication.entity.Details_Entity

class Details_Adapter(layout:Int,list: ArrayList<Details_Entity.goodss>):BaseQuickAdapter<Details_Entity.goodss,BaseViewHolder>(layout,list) {
    override fun convert(holder: BaseViewHolder, item: Details_Entity.goodss) {
        Glide.with(mContext).load("http://iwenwiki.com/api/yoho/"+item.goods_img_path).into(holder.getView(R.id.details_img))
        holder.setText(R.id.details_tex,item.goods_name)
    }
}